import http from "@/utils/http"
//页面渲染banner
// "pageNo": 0,"pageSize": 0
export const BannerPageApi = (data) => {
    return http.post("/auth/banner/page", data);
}
//新增banner
export const addBannerApi = (data) => {
    return http.post("/auth/banner/add", data);
}
//编辑banner
export const editBannerApi = (data) => {
    return http.post("/auth/banner/edit", {
        ...data,
        status: data.status || 0 // 确保默认状态
    });
}
// export const editBannerApi = (data) => {
//     return http.post("/auth/banner/edit", data);
// }
// 删除banner（建议改为DELETE方法）
export const delBannerApi = (bannerId) => {
    return http.get(`/auth/banner/del/${bannerId}`);
}


//按banner id检索banner
export const bannerInfoByIdApi = (bannerId) => {
    return http.get(`/auth/banner/info/${bannerId}`);
}